package com.github.zzay.admin.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.github.zzay.admin.dto.AdminDto;
import com.github.zzay.admin.entity.Admin;

/**
 * @author zzay
 * @interfaceName AdminService
 * @description Service interface class of "AdminService".
 * @create 2022/07/04 22:07
 * @see com.github.zzay.admin.service.impl.AdminServiceImpl
 */
public interface AdminService extends IService<Admin> {

    /**
     * Register an admin account.
     *
     * @param adminDto Admin DTO
     * @return Operation result
     */
    Boolean register(AdminDto adminDto);

    /**
     * Log in of an admin account.
     *
     * @param adminDto Admin DTO
     * @return Operation result
     */
    Boolean login(AdminDto adminDto);

    /**
     * Log out of an admin account.
     *
     * @param adminDto Admin DTO
     * @return Operation result
     */
    Boolean logout(AdminDto adminDto);

}
